package com.example.demospringboot.service.impl;

import com.example.demospringboot.beanentity.User;
import com.example.demospringboot.daomapper.LoginMapper;
import com.example.demospringboot.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;
    @Override
    public boolean login(User user) {
           if (loginMapper.login(user)!=null){
               return true;
           }
           else {
               return false;
           }

    }
}
